using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._BusinessAnalystTools._TargetMarketing
{
    /// <summary>
    /// <para>Generate Target Penetration Layer</para>
    /// <para>Generates a layer based on the percent of penetration of selected segments, providing a detailed view of the concentrations of your target segments.</para>
    /// <para>根据所选区段的渗透率生成图层，提供目标区段浓度的详细视图。</para>
    /// </summary>    
    [DisplayName("Generate Target Penetration Layer")]
    public class GenerateTargetPenetrationLayer : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public GenerateTargetPenetrationLayer()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_geography_level">
        /// <para>Geography Level</para>
        /// <para>The geography level that will be used to define the target layer.</para>
        /// <para>将用于定义目标图层的地理级别。</para>
        /// </param>
        /// <param name="_segmentation_base">
        /// <para>Segmentation Base</para>
        /// <para>The segmentation base for the profile being created. Available options are provided by the segmentation dataset in use.</para>
        /// <para>要创建的配置文件的分段基础。可用选项由正在使用的分段数据集提供。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The output feature class for the target layer.</para>
        /// <para>目标图层的输出要素类。</para>
        /// </param>
        /// <param name="_input_type">
        /// <para>Target Input Type</para>
        /// <para><xdoc>
        ///   <para>The geographic layer containing the segmentation data or the target group.</para>
        ///   <bulletList>
        ///     <bullet_item>Use Target Group—A target group will be used as the input type.</bullet_item><para/>
        ///     <bullet_item>Select Segments—Selected segments will be used as the input type. One or more segments can compose a target. This is the default.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>包含分割数据或目标组的地理图层。</para>
        ///   <bulletList>
        ///     <bullet_item>使用目标组—将使用目标组作为输入类型。</bullet_item><para/>
        ///     <bullet_item>选择线段—所选线段将用作输入类型。一个或多个段可以组成一个目标。这是默认设置。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// </param>
        public GenerateTargetPenetrationLayer(object _geography_level, object _segmentation_base, object _out_feature_class, _input_type_value _input_type)
        {
            this._geography_level = _geography_level;
            this._segmentation_base = _segmentation_base;
            this._out_feature_class = _out_feature_class;
            this._input_type = _input_type;
        }
        public override string ToolboxName => "Business Analyst Tools";

        public override string ToolName => "Generate Target Penetration Layer";

        public override string CallName => "ba.GenerateTargetPenetrationLayer";

        public override List<string> AcceptEnvironments => ["baDataSource", "extent", "workspace"];

        public override object[] ParameterInfo => [_geography_level, _segmentation_base, _out_feature_class, _input_type.GetGPValue(), _target_group, _target, _segments, _boundary_layer];

        /// <summary>
        /// <para>Geography Level</para>
        /// <para>The geography level that will be used to define the target layer.</para>
        /// <para>将用于定义目标图层的地理级别。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Geography Level")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _geography_level { get; set; }


        /// <summary>
        /// <para>Segmentation Base</para>
        /// <para>The segmentation base for the profile being created. Available options are provided by the segmentation dataset in use.</para>
        /// <para>要创建的配置文件的分段基础。可用选项由正在使用的分段数据集提供。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Segmentation Base")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _segmentation_base { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The output feature class for the target layer.</para>
        /// <para>目标图层的输出要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Target Input Type</para>
        /// <para><xdoc>
        ///   <para>The geographic layer containing the segmentation data or the target group.</para>
        ///   <bulletList>
        ///     <bullet_item>Use Target Group—A target group will be used as the input type.</bullet_item><para/>
        ///     <bullet_item>Select Segments—Selected segments will be used as the input type. One or more segments can compose a target. This is the default.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>包含分割数据或目标组的地理图层。</para>
        ///   <bulletList>
        ///     <bullet_item>使用目标组—将使用目标组作为输入类型。</bullet_item><para/>
        ///     <bullet_item>选择线段—所选线段将用作输入类型。一个或多个段可以组成一个目标。这是默认设置。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Target Input Type")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _input_type_value _input_type { get; set; }

        public enum _input_type_value
        {
            /// <summary>
            /// <para>Use Target Group</para>
            /// <para>Use Target Group—A target group will be used as the input type.</para>
            /// <para>使用目标组—将使用目标组作为输入类型。</para>
            /// </summary>
            [Description("Use Target Group")]
            [GPEnumValue("USE_TARGET_GROUP")]
            _USE_TARGET_GROUP,

            /// <summary>
            /// <para>Select Segments</para>
            /// <para>Select Segments—Selected segments will be used as the input type. One or more segments can compose a target. This is the default.</para>
            /// <para>选择线段—所选线段将用作输入类型。一个或多个段可以组成一个目标。这是默认设置。</para>
            /// </summary>
            [Description("Select Segments")]
            [GPEnumValue("SELECT_SEGMENTS")]
            _SELECT_SEGMENTS,

        }

        /// <summary>
        /// <para>Target Group</para>
        /// <para>A user-created group of targets. This parameter is used when the dataset supports target groups.</para>
        /// <para>用户创建的目标组。当数据集支持目标组时，使用此参数。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Target Group")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _target_group { get; set; } = null;


        /// <summary>
        /// <para>Target</para>
        /// <para>A target from the selected Target Group.</para>
        /// <para>所选目标组中的目标。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Target")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _target { get; set; } = null;


        /// <summary>
        /// <para>Segments</para>
        /// <para>Segments from the provided dataset.</para>
        /// <para>来自所提供数据集的区段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Segments")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public List<object> _segments { get; set; } = null;


        /// <summary>
        /// <para>Boundary Layer</para>
        /// <para>The boundary that determines the extent of the analysis.</para>
        /// <para>确定分析范围的边界。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Boundary Layer")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _boundary_layer { get; set; } = null;


        public GenerateTargetPenetrationLayer SetEnv(object extent = null, object workspace = null)
        {
            base.SetEnv(extent: extent, workspace: workspace);
            return this;
        }

    }

}